package com.autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestClaa {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("classroomContext.xml");
        ClassRoom classRoom = applicationContext.getBean("classRoom", ClassRoom.class);
        System.out.println(classRoom.toString());
    }
}
